package com.bc.bcmodel.req;

import com.bc.bcmodel.Entity;
import com.bc.commoncore.util.DataUtils;
import com.bc.commonentity.enums.HttpReturnRnums;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * Created by lianzerong on 2018/8/21.
 */
public class UserEmailCheckReq extends Entity {

    private static final long serialVersionUID = 5038198870797927742L;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * sign up email
     * */
    private String email;

    public HttpReturnRnums paramsCheck() {
        if (!DataUtils.isEmail(getEmail())) {
            return HttpReturnRnums.ParaError;
        }
        return HttpReturnRnums.Success;
    }

}
